<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getarrivalUrl="{:U('Order/get_arrival')}";//到货商品列表
	var confirmoverdueUrl="{:U('Stock/confirm_overdue')}";//确认上架
	var storageListUrl="{:U('Tablelist/ajax_storagelist')}";//库位列表
	var overduelistUrl="{:U('Stock/overduelist')}";//移库记录
	var overduefastUrl="{:U('Order/get_overduefast')}";//过期时间快捷查询

	<!-- using('../../../default/js/overdue.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/overdue.js"></script>

	<table id="overdueDatagrid" toolbar="#overdue_tb"></table>
    <!-- 搜索栏 -->
    <div id="overdue_tb">
        <form id="overdueSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="overdueObj.showAll()">全部</a>
			 过期时间: <input class="easyui-datetimebox" name="start_time" value="{:date('Y-m-1 h:i:s',time())}" style="height:30px;width:150px;">
			- <input class="easyui-datetimebox" name="end_time" value="{:date('Y-m-d h:i:s',time())}" style="height:30px;width:150px;">
            单号:<input class="easyui-textbox" name="order_no" style="width:150px;height:30px;"> 
			账册编码:<input class="easyui-textbox" name="manual_id" style="width:150px;height:30px;"> 
			商品编码:<input class="easyui-textbox" name="goods_no" style="width:150px;height:30px;"> 
			商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;"> 
			
			云仓商品: 
			<select class="easyui-combobox cloud_depot_status"  style="width:70px;height:30px;">
				<option value="0">未选择</option>
				<option value="1">是</option>
				<option value="2">否</option>
			</select>
			
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
        快捷查询（过期时间）：<a href="javascript:void(0)" onclick="overdueObj.overdueBar(0,0,1)" class="easyui-linkbutton" data-options="iconCls:'icon-shape_move_front',plain:true">1周内</a>
		<a href="javascript:void(0)" onclick="overdueObj.overdueBar(0,1)" class="easyui-linkbutton" data-options="iconCls:'icon-shape_move_front',plain:true">1月内</a>
		<a href="javascript:void(0)" onclick="overdueObj.overdueBar(1,3)" class="easyui-linkbutton" data-options="iconCls:'icon-shape_move_front',plain:true">1-3月</a>
		<a href="javascript:void(0)" onclick="overdueObj.overdueBar(3,6)" class="easyui-linkbutton" data-options="iconCls:'icon-shape_move_front',plain:true">3-6月</a>
		<a href="javascript:void(0)" onclick="overdueObj.overdueBar(6,12)" class="easyui-linkbutton" data-options="iconCls:'icon-shape_move_front',plain:true">6-12月</a>
		<a href="javascript:void(0)" onclick="overdueObj.overdueBar(12,24)" class="easyui-linkbutton" data-options="iconCls:'icon-shape_move_front',plain:true">12-24月</a>
		<a href="javascript:void(0)" onclick="overdueObj.overdueBar(24,0)" class="easyui-linkbutton" data-options="iconCls:'icon-shape_move_front',plain:true">大于24月</a>
    </div>
    <!-- /搜索栏 -->
	<!-- 上架 -->
    <div id="overdueEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#overdueEditButtons"  modal="true">
        <form id="overdueEditForm" method="post" novalidate>       
			<div class="fitem">
                <label>单号</label>
                <input name="id" type="hidden" />
                <input name="order_no" class="easyui-textbox" data-options="disabled:true,height:30,editor:'numberbox'" />
            </div>
			<div class="fitem">
                <label>账册编号</label>
                <input name="id" type="hidden" />
                <input name="manual_id" class="easyui-textbox" data-options="disabled:true,height:30,editor:'numberbox'" />
            </div>			
            <div class="fitem">
                <label>商品编码</label>
                <input name="id" type="hidden" />
                <input name="goods_no" class="easyui-textbox" data-options="disabled:true,height:30,editor:'numberbox'" />
            </div>
            <div class="fitem">
                <label>商品名称</label>
                <input name="goods_name" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>条形码</label>
                <input name="bar_code" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>规格</label>
                <input name="goods_spec" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>库位</label>
                <select class="easyui-combobox" name="storage_code" id='overdueGroupEdit' data-options="height:30,required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
						<option value="0">未选择</option>
						<volist name="storage_list" id="vo">
							<option value="{$vo['storage_code']}">{$vo['name']}</option>
						</volist>
                </select>
            </div>
			<div class="fitem">
                <label>库存数量</label>
                <input name="goods_name" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>合格品</label>
                <input name="conforming_p" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>残次品</label>
                <input name="nonconforming_p" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>报废品</label>
                <input name="scrap_one" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
                
        </form>
    </div>
    <div id="overdueEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="overdueObj.save('{:U('Stock/confirm_overdue')}')" style="width:90px">移库</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#overdueEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /上架 -->   
</body>